﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Douban.ViewModel
{
    public class ViewModelBase : INotifyPropertyChanged
    {
        public string apiBase = "https://api.douban.com";
        public string apiUser = "/v2/user/{0}";
        public string apiGroup = "/v2/group/dbapi/";
        public string apiEvents = "/v2/onlines?1=1";
        public string apiEvent = "/v2/online/{0}";
        public string apiEventPhotos = "/v2/online/{0}/photos/";
        public string apiAlbumPhotos = "/v2/album/{0}/photos/";
        public string apiEventPhoto = "/v2/photo/{0}";
        public string apiStartPara = "?start={1}";
        public string apiCountPara = "&count={2}";

        public event PropertyChangedEventHandler PropertyChanged;
        public void NotifyPropertyChanged(String propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
